package com.botu.oauth2.mapper;

import com.botu.oauth2.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author hanzeyao
 * @since 2020-02-14
 */
@Mapper
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    List<Permission> selectByUserId(@Param("userId") Long userId);
}
